<%@page import="com.mconnect.msurvey.controller.PlanManager"%>
<%@page import="com.mconnect.msurvey.model.Report"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
		body { font-size: 62.5%; }
		label, input { display:block; }
		input.text { margin-bottom:12px; width:95%; padding: .4em; }
		fieldset { padding:0; border:0; margin-top:25px; }
		h1 { font-size: 1.2em; margin: .6em 0; }
		div#users-contain { width: 350px; margin: 20px 0; }
		div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
		div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
	</style>
</head>
<body>
	<% 	String beginDate = request.getParameter("beginDate");
		String endDate = request.getParameter("endDate");
		PlanManager pM = new PlanManager();
		Report report = pM.getReportByDate(beginDate, endDate);
	%>
	
	<div id="users-contain" class="ui-widget" style="width: 800px; ">
		<table id="users" class="ui-widget ui-widget-content" >
			<thead>
				<tr class="ui-widget-header ">
					<th style="width: 100px;">Ankiet</th>
					<th style="width: 100px;">Ankiet HR</th>
					<th style="width: 100px;">Wszystkich ankiet</th>
					<th style="width: 100px;">Poleceń</th>
					<th style="width: 100px;">Poleceń HR</th>
					<th style="width: 100px;">Wszystkich poleceń</th>
					<th style="width: 100px;">Potwierdziło przybycie</th>
					<th style="width: 100px;">Pozyskanych peseli</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td><%= report.getNumberOfSurveys() %></td>
					<td><%= report.getNumberOfSurveysHR() %></td>
					<td><%= report.getTotalSurveys() %></td>
					<td><%= report.getNumberOfRecommend() %></td>
					<td><%= report.getNumberOfRecommendHr() %></td>
					<td><%= report.getTotalRecommend() %></td>
					<td><%= report.getNumberOfConfirms() %></td>
					<td><%= report.getNumberOfPesels() %></td>
				</tr>
				
			</tbody>
		</table>
	</div>

</body>
</html>